package day02;

import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac;
import com.sun.org.apache.xml.internal.utils.IntVector;

import javax.swing.*;

             //数据类型演示
public class DataTypeDemo {
    public static void main(String[] args) {
        System.out.println("暗蛆突围");
       // long a=3l;
//byte,short,int,long,float,double,boolean,char;
        char a=1111,b='好';int aa='6';
        char c=(char) (a+b);
        System.out.println(a);
        System.out.println(aa);
        System.out.println(b);
        System.out.println(c);
        /*1G=1024M
        * 1M=1024KB
        * 1KB=1024B
        * 1B=8bit*
        Unicode:万国码、统一码、通用码，是世界级通用的定长字符集合
        * 单词 name姓名 number/num数字flag标记max最大值 if如果
        *      price价格else否则其他的operator/oper运算符*/













       /* char a='6';int aa='6';
        System.out.println(a);
        System.out.println(aa);
        char b='男',bb='女',bbb='妖',bbbb=65;int c='男';
        char d='\"';
        System.out.println(b);
        System.out.println(bb);
        System.out.println(bbb);
        System.out.println(bbbb);
        System.out.println(c);
        System.out.println(d);*/












     /* double a=3.14159265350514;
      float b=(float)a;
      System.out.println(b);
      System.out.println(a);
      boolean c=true,d=false;
      System.out.println(c);
      System.out.println(d);*/















       /* int a=1352135135,b=999999999;
        System.out.println(a+b);
        long bb=1000000000000000L;
        long bbb=365*24*60*60*1000;
        long bbbb=365L*24*60*60*1000;
        System.out.println(bbb);
        System.out.println(bb);
        System.out.println(bbbb);*/









        /*int a='蛆';
        char b=105,c=45,d=105;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);*/










       /* int a=15;
        long b=a;
        int c=(int) b;
        long aa=25;
        double bb=(double) aa;
        System.out.println(bb);
        long cc=400000000000L;
        int d=(int) cc;
        System.out.println(d);
        double ce=12.512;
        int de=(int) ce;
        System.out.println(de);*/











        /*//char:字符型，2个字节
        //采用的是Unicode编码格式，一个字符对应一个码，看到的是字符char，本质上是int(0-65535)
        //'a'=97,'A'=65,'0'=48
        char a=97,b=65,c=48,d='\'',e='\\',f='\4';
        System.out.println("a");
        System.out.println('a');
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);*/




        /*boolean a=true,b=false;
        System.out.println(b);*/







        /*double a=5.0,b=12.6,aa=2.0,ab=1.9;
       // boolean ac=2.0,ad=1.9;
        System.out.println(aa-ab);
        System.out.println(b-a);*/

















       /* long a=100000000*10*10L;
        long b=100000000L*10*10;
        System.out.println(a);
        System.out.println(b);
        long aa=2000000000*100*10L;
        long ab=2000000000L*100*10;
        System.out.println(aa);
        System.out.println(ab);*/















        /*
        int a=1544,b=5451;
        System.out.println(a*b);
        System.out.println("jdkfhfih");
        System.out.println("烦死了的看法");
        System.out.println(a/b);
        System.out.println(500);
        System.out.println();*/

    }
}
